<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0"/>
    <title>签到</title>
    <meta content="yes" name="apple-mobile-web-app-capable" />
    <meta content="black" name="apple-mobile-web-app-status-bar-style" />
    <meta content="telephone=no" name="format-detection" />
	<link rel="stylesheet" href="../assets/mobile/top.css">
    <link href="../assets/mobile/comm.css" rel="stylesheet" type="text/css" />
    <link href="../assets/mobile/member.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
<link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<script src="../assets/js/mobile/jquery190.js" type="text/javascript"></script>
<style>body{position:static;}</style>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
</head>
<body>
<div class="h5-1yyg-v11">

<!-- 栏目页面顶部 -->

<!--通用顶部-->
<div id="ios-top-box">
	<div id="header" class="bar bar-nav">
	<div class="titlebar">
	<a href="javascript:appClose('qiandao',api);"><i class="iconfont iconline-arrow-left"></i></a>
	<h1 class="title">签到</h1>
	</div>
	</div>
</div>
<!--通用顶部结束-->

  <section class="clearfix g-member" style="margin-top:44px;">
<div class="clearfix m-round m-name">
<style>
.u-mbr-info li:nth-child(1) {
border-top: none;
}
.u-mbr-info li:nth-child(3n-1) {
	width: 100%;
	text-indent: 5px;
	line-height: 27px;
	border-left: none;
	border-top: 1px solid #EFEFEF;
	box-shadow: none;
}
.u-mbr-info li:nth-child(3n-3) {
width: 100%;
text-indent: 5px;
line-height: 27px;
border-left: none;
border-top: 1px solid #EFEFEF;
box-shadow: none;
}
.u-mbr-info li {
width: 100%;
text-indent: 5px;
line-height: 27px;
border-left: none;
border-top: 1px solid #EFEFEF;
box-shadow: none;
}
</style>

				<p class="u-name">
					<b class="z-name gray01 username"></b><em>(135.......})</em>
				</p>
				<ul class="clearfix u-mbr-info">
				<li>可用福分 <span class="orange myScore">0</span></li>
				<li>您已连续签到 <span class="orange mySignin">0</span>天</li>
				<li>总共签到 <span class="orange mySignTimeAll">0</span>天</li>
				<li>最后签到 <span class="orange myLastSign">0</span></li>

				<li class="today" style="text-align: center;display:none;"><a href="javascript:;" class="z-Recharge-btn">今天已签到</a></li>

				<li class="action" style="text-align: center;display:none;"><a href="javascript:;" class="z-Recharge-btn">马上签到</a></li>

				</ul>
		</div>
		<link href="../assets/mobile/help.css" rel="stylesheet" type="text/css" />

	    <div class="helpCon" style="padding: 0;">
    	    <div class="helpMain m-round">
        	    <div class="helpInfo">
            	    <dt>
                	    <h3 style="">签到说明</h3>
                    </dt>
                    <dd id="dd1" class="helpBox">
						1.每天签到时间为00：01到23：59分<br />
						2.每次签到可以获得100福分<br />
						3.同一个IP、同一个地址、同一个联系人、同一台电脑只允许一个账号签到，发现多个账号签到的全部封号。<br />
                    </dd>
                </div>
			</div>
		</div>
    </section>
</div>

<script type="text/javascript" src="../assets/js/mobile/BottomFun.js"></script>
<script type="text/javascript">
var Base={head:document.getElementsByTagName("head")[0]||document.documentElement,Myload:function(B,A){this.done=false;B.onload=B.onreadystatechange=function(){if(!this.done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){this.done=true;A();B.onload=B.onreadystatechange=null;if(this.head&&B.parentNode){this.head.removeChild(B)}}}},getScript:function(A,C){var B=function(){};if(C!=undefined){B=C}var D=document.createElement("script");D.setAttribute("language","javascript");D.setAttribute("type","text/javascript");D.setAttribute("src",A);this.head.appendChild(D);this.Myload(D,B)},getStyle:function(A,B){var B=function(){};if(callBack!=undefined){B=callBack}var C=document.createElement("link");C.setAttribute("type","text/css");C.setAttribute("rel","stylesheet");C.setAttribute("href",A);this.head.appendChild(C);this.Myload(C,B)}}
function GetVerNum(){var D=new Date();return D.getFullYear().toString().substring(2,4)+'.'+(D.getMonth()+1)+'.'+D.getDate()+'.'+D.getHours()+'.'+(D.getMinutes()<10?'0':D.getMinutes().toString().substring(0,1))}
apiready = function(){
	var userinfo = '';
if(userinfo = getUserinfo()){
	$('.username').text(userinfo['username']).next().text('('+userinfo['mobile']+')');
	GetJPData(config.url+'/app.php?act=signto&uid='+userinfo['uid'],{},function(data){
		$('.myScore').text(data['userinfo']['score']);
		$('.mySignin').text(data['userinfo']['sign_in_time']);
		$('.mySignTimeAll').text(data['userinfo']['sign_in_time_all']);
		$('.myLastSign').text(data['userinfo']['sign_in_date']);
		if(data['status'] == 1){
			$('.action').show();
		}else if(data['status'] == 0){
			$('.today').show();
		}
	});
	
	$('.action').click(function(){
		GetJPData(config.url+'/app.php?act=signdo&uid='+userinfo['uid'],{submit:'submit'},function(data){
			if(data['status'] == 0){
		    	if(confirm('签到请登录会员喔')){
		    		randomSwitchBtn('login',api);
		    	}
			}else{
				if(data['userinfo']){
					$('.myScore').text(data['userinfo']['score']);
					$('.mySignin').text(data['userinfo']['sign_in_time']);
					$('.mySignTimeAll').text(data['userinfo']['sign_in_time_all']);
					$('.myLastSign').text(data['userinfo']['sign_in_date']);
				}
				$('.action').hide();
				$('.today').show();
				api.alert({title:'提示',msg:data['msg']},function(index,error){});
			}
		});
	});
	
}
};
</script>
</body>
</html>
